package com.lhc.bean.lifecycle;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author LuHuanCheng
 * 类说明：bean实例化后有PostConstruct注解的方法会被调用
 */
@Component
public class PostConstructBean {

    @PostConstruct
    public void init(){
        System.out.println("bean实例化以后 有PostConstruct注解的方法被调用");
    }
}